<?php
/**
 * Created by PhpStorm.
 * User: cc
 * Date: 2024/10/9
 * Time: 下午3:58
 */

namespace app\api\controller\v50;

use app\api\controller\v13\Auth2;
use think\Env;

class AiChat extends Auth2
{
    /**
     * AI工具列表
     * @return \think\response\Json
     */
    public function tooList()
    {
        //type1=>推荐问题 2=>合盘模式 3=>塔罗占卜 4=>骰子
        $oss = Env::get('host.photo');
        $data = [
            [
                'icon' => $oss . '/test/ai/recommend_question.png',
                'name' => '推荐问题',
                'type' => 1
            ],
            [
                'icon' => $oss . '/test/ai/synastry.png',
                'name' => '合盘模式',
                'type' => 2
            ],
            [
                'icon' => $oss . '/test/ai/tarot.png',
                'name' => '塔罗占卜',
                'type' => 3
            ],
            [
                'icon' => $oss . '/test/ai/dice.png',
                'name' => '骰子',
                'type' => 4
            ]
        ];
        return show(config('code.success'), '请求成功', $data);
    }
}
